package com.arron.ssm.service.impl;

import com.arron.ssm.dao.UserMapper;
import com.arron.ssm.entity.User;
import com.arron.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname UserServiceImpl
 * @Date 2020/9/22 21:57
 * @Created by 刘
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> getAllUsers() {

        List<User> users = userMapper.selectList();

        return users;
    }
}
